package com.singlemountain.gcommerce.domain.currency;

import com.singlemountain.gcommerce.domain.base.Base;
import com.singlemountain.gcommerce.domain.price.Priced;
import java.util.Currency;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Currencyd extends Base {

    private transient Currency jkdCurrcy;

    private String title;

    private String exampleOutput;

    private String symbol;

    @NotNull
    @Column(unique = true)
    private String code;

    @OneToMany(cascade = CascadeType.ALL)
    private Set<Priced> priceSet = new HashSet<Priced>();

    private String exchangeRate;
}
